/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 * tipo de letra para botones: Ben Pionner
 */

/*
 * Principal2.java
 *
 * Created on 28/10/2011, 04:33:12 PM
 */
package vista;
import controlador.EventoPanel;
import modelo.ContenedorComponente;
import controlador.EventoBoton;
import controlador.Inicio;
import dao.HistorialDAO;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Graphics;
import java.util.ArrayList;
import java.util.List;
import javax.swing.ImageIcon;
import logica.ComportamientoHumedad;
import logica.RiegoAlDia;
import snoozesoft.systray4j.SysTrayMenuEvent;
import snoozesoft.systray4j.SysTrayMenuListener;
//letra been pioner tamaño 15
/**
 *
 * @author Elias Mendoza
 */
public class Principal2 extends javax.swing.JFrame implements  SysTrayMenuListener{
  
  Inicio ini = new Inicio();
  ContenedorComponente cc;
  EventoBoton accion = new EventoBoton();
  EventoPanel cargaPanel;
  public List listUltRegistro = new ArrayList();
  String nombreSustrato="";

 

  /** Creates new form Principal2 */
  public Principal2() {
    
    
    initComponents();
    this.pack();
    
    ini.muestraHoraFecha(hora,fecha);
    ini.compruebaConexionBD(labeEstadoBD);
    ini.cargaPanelInicio(panelGraficaHumedadActual);
    ini.cargaPanelInicio(contenedorPanel);
    
    cargaPanel= new EventoPanel(contenedorPanel);
  }
 
  /** This method is called from within the constructor to
   * initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is
   * always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        Principal = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jPanel5 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        panelFechaHora = new javax.swing.JPanel();
        fecha = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        hora = new javax.swing.JLabel();
        panelPuertoSeial = new javax.swing.JPanel();
        conectar = new javax.swing.JButton();
        puerto = new javax.swing.JComboBox();
        panelSistema = new javax.swing.JPanel();
        salir = new javax.swing.JButton();
        minimizar = new javax.swing.JButton();
        jPanel7 = new javax.swing.JPanel();
        jSplitPane3 = new javax.swing.JSplitPane();
        jLabel3 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        contenedorPrincipal = new javax.swing.JTabbedPane();
        jPanelInicio = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jPanel10 = new javax.swing.JPanel();
        jSplitPane5 = new javax.swing.JSplitPane();
        jLabel7 = new javax.swing.JLabel();
        labelPuerto = new javax.swing.JLabel();
        jSplitPane6 = new javax.swing.JSplitPane();
        jLabel15 = new javax.swing.JLabel();
        labelEstadoPuerto = new javax.swing.JLabel();
        jSplitPane7 = new javax.swing.JSplitPane();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jSplitPane8 = new javax.swing.JSplitPane();
        jLabel19 = new javax.swing.JLabel();
        labeEstadoBD = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        datosRecibidos = new javax.swing.JTextArea();
        jPanel3 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tablaDatosR = new javax.swing.JTable();
        panelGraficaHumedadActual = new javax.swing.JPanel();
        uliFecha = new javax.swing.JSplitPane();
        jLabel8 = new javax.swing.JLabel();
        ultFecha = new javax.swing.JTextField();
        jSplitPane2 = new javax.swing.JSplitPane();
        jLabel9 = new javax.swing.JLabel();
        ultHora = new javax.swing.JTextField();
        jPanelEstadoValvulas = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();
        JtabbetpaneContenedor2 = new javax.swing.JTabbedPane();
        jPanel11 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        tablaResumen = new javax.swing.JTable();
        barraRiegoDia = new javax.swing.JProgressBar();
        botonObtenerDatosRegistroDia = new javax.swing.JButton();
        jScrollPane5 = new javax.swing.JScrollPane();
        tablaEstadoValvula = new javax.swing.JTable();
        jPanel13 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        comboNombreNave = new javax.swing.JComboBox();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        comboNombreSustrato = new javax.swing.JComboBox();
        checkAll = new javax.swing.JCheckBox();
        botonInicioRegistroDia = new javax.swing.JButton();
        jPanel17 = new javax.swing.JPanel();
        jPanel15 = new javax.swing.JPanel();
        graficarComportamiento = new javax.swing.JButton();
        barraComportamiento = new javax.swing.JProgressBar();
        jPanel16 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        tablaNombreSustrato = new javax.swing.JTable();
        jPanel18 = new javax.swing.JPanel();
        panelContenedorGraficaComportamiento = new javax.swing.JPanel();
        jPanelRegistros = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        jPanel14 = new javax.swing.JPanel();
        jPanel19 = new javax.swing.JPanel();
        insertarProductor = new javax.swing.JButton();
        jPanel20 = new javax.swing.JPanel();
        insertarProducto = new javax.swing.JButton();
        jPanel21 = new javax.swing.JPanel();
        insertarSustrato = new javax.swing.JButton();
        jPanel22 = new javax.swing.JPanel();
        insertarReferencia = new javax.swing.JButton();
        jPanel23 = new javax.swing.JPanel();
        insertarNave = new javax.swing.JButton();
        contenedorPanel = new javax.swing.JPanel();
        jPanel28 = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("SIRA");
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.LINE_AXIS));

        Principal.setBackground(new java.awt.Color(255, 255, 255));

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));

        jPanel6.setBackground(new java.awt.Color(255, 255, 255));
        jPanel6.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel6.setLayout(new java.awt.GridBagLayout());

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vista/img/sira.png"))); // NOI18N
        jPanel6.add(jLabel4, new java.awt.GridBagConstraints());

        jLabel2.setBackground(new java.awt.Color(0, 51, 51));
        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vista/img/sistemariegoautomatico.png"))); // NOI18N
        jPanel6.add(jLabel2, new java.awt.GridBagConstraints());

        jPanel1.add(jPanel6);

        jPanel5.setBackground(new java.awt.Color(255, 255, 255));
        jPanel5.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel5.setLayout(new javax.swing.BoxLayout(jPanel5, javax.swing.BoxLayout.Y_AXIS));

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vista/img/inifaplogo.jpg"))); // NOI18N
        jPanel5.add(jLabel1);

        jPanel1.add(jPanel5);

        jPanel2.setBackground(new java.awt.Color(255, 255, 255));
        jPanel2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));
        jPanel2.setLayout(new java.awt.GridLayout(1, 0));

        panelFechaHora.setBackground(new java.awt.Color(255, 255, 255));
        panelFechaHora.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Fecha y Hora", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Maiandra GD", 1, 14))); // NOI18N
        panelFechaHora.setLayout(new java.awt.GridBagLayout());

        fecha.setFont(new java.awt.Font("Times New Roman", 1, 14));
        fecha.setForeground(new java.awt.Color(0, 153, 255));
        fecha.setText("2000-12-12");
        panelFechaHora.add(fecha, new java.awt.GridBagConstraints());

        jLabel6.setText("--");
        panelFechaHora.add(jLabel6, new java.awt.GridBagConstraints());

        hora.setFont(new java.awt.Font("Times New Roman", 1, 14));
        hora.setForeground(new java.awt.Color(0, 153, 255));
        hora.setText("00:00:00 am");
        panelFechaHora.add(hora, new java.awt.GridBagConstraints());

        jPanel2.add(panelFechaHora);

        panelPuertoSeial.setBackground(new java.awt.Color(255, 255, 255));
        panelPuertoSeial.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Puerto Serial", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Maiandra GD", 1, 14))); // NOI18N
        panelPuertoSeial.setLayout(new java.awt.GridBagLayout());

        conectar.setBackground(new java.awt.Color(255, 255, 255));
        conectar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vista/img/conectar.png"))); // NOI18N
        conectar.setBorder(null);
        conectar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                conectarActionPerformed(evt);
            }
        });
        panelPuertoSeial.add(conectar, new java.awt.GridBagConstraints());

        puerto.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "COM10", "COM133" }));
        panelPuertoSeial.add(puerto, new java.awt.GridBagConstraints());

        jPanel2.add(panelPuertoSeial);

        panelSistema.setBackground(new java.awt.Color(255, 255, 255));
        panelSistema.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Sistema", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Maiandra GD", 1, 14))); // NOI18N
        panelSistema.setLayout(new java.awt.GridBagLayout());

        salir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vista/img/salir.png"))); // NOI18N
        salir.setBorder(null);
        salir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                salirActionPerformed(evt);
            }
        });
        panelSistema.add(salir, new java.awt.GridBagConstraints());

        minimizar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vista/img/minimizar.png"))); // NOI18N
        minimizar.setBorder(null);
        minimizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                minimizarActionPerformed(evt);
            }
        });
        panelSistema.add(minimizar, new java.awt.GridBagConstraints());

        jPanel2.add(panelSistema);

        jPanel7.setBackground(new java.awt.Color(255, 255, 255));
        jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Usuario", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Maiandra GD", 1, 14))); // NOI18N
        jPanel7.setLayout(new java.awt.GridBagLayout());

        jSplitPane3.setBackground(new java.awt.Color(255, 255, 255));
        jSplitPane3.setEnabled(false);

        jLabel3.setBackground(new java.awt.Color(255, 255, 255));
        jLabel3.setFont(new java.awt.Font("Maiandra GD", 1, 12));
        jLabel3.setText("Nombre: ");
        jSplitPane3.setLeftComponent(jLabel3);

        jLabel10.setBackground(new java.awt.Color(255, 255, 255));
        jLabel10.setFont(new java.awt.Font("Maiandra GD", 1, 12));
        jLabel10.setText("nombre");
        jSplitPane3.setRightComponent(jLabel10);

        jPanel7.add(jSplitPane3, new java.awt.GridBagConstraints());

        jPanel2.add(jPanel7);

        contenedorPrincipal.setBackground(new java.awt.Color(255, 255, 255));
        contenedorPrincipal.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
        contenedorPrincipal.setFont(new java.awt.Font("Maiandra GD", 1, 14)); // NOI18N

        jPanelInicio.setBackground(new java.awt.Color(204, 0, 204));
        jPanelInicio.setForeground(new java.awt.Color(255, 255, 255));
        jPanelInicio.setLayout(new java.awt.BorderLayout());

        jPanel4.setBackground(new java.awt.Color(255, 255, 255));
        jPanel4.setLayout(new javax.swing.BoxLayout(jPanel4, javax.swing.BoxLayout.LINE_AXIS));

        jPanel10.setBackground(new java.awt.Color(255, 255, 255));

        jSplitPane5.setBackground(new java.awt.Color(255, 255, 255));
        jSplitPane5.setEnabled(false);

        jLabel7.setFont(new java.awt.Font("Maiandra GD", 1, 12));
        jLabel7.setForeground(new java.awt.Color(102, 102, 102));
        jLabel7.setText("Puerto RS32: ");
        jSplitPane5.setLeftComponent(jLabel7);

        labelPuerto.setFont(new java.awt.Font("Maiandra GD", 1, 12));
        labelPuerto.setForeground(new java.awt.Color(51, 102, 255));
        labelPuerto.setText("00");
        jSplitPane5.setRightComponent(labelPuerto);

        jSplitPane6.setBackground(new java.awt.Color(255, 255, 255));
        jSplitPane6.setEnabled(false);

        jLabel15.setFont(new java.awt.Font("Maiandra GD", 1, 12));
        jLabel15.setForeground(new java.awt.Color(102, 102, 102));
        jLabel15.setText("Estado: ");
        jSplitPane6.setLeftComponent(jLabel15);

        labelEstadoPuerto.setFont(new java.awt.Font("Maiandra GD", 1, 12));
        labelEstadoPuerto.setForeground(new java.awt.Color(204, 51, 0));
        labelEstadoPuerto.setText("desconectado");
        jSplitPane6.setRightComponent(labelEstadoPuerto);

        jSplitPane7.setBackground(new java.awt.Color(255, 255, 255));
        jSplitPane7.setEnabled(false);

        jLabel17.setFont(new java.awt.Font("Maiandra GD", 1, 12));
        jLabel17.setForeground(new java.awt.Color(102, 102, 102));
        jLabel17.setText("Base Datos: ");
        jSplitPane7.setLeftComponent(jLabel17);

        jLabel18.setFont(new java.awt.Font("Maiandra GD", 1, 12));
        jLabel18.setForeground(new java.awt.Color(51, 102, 255));
        jSplitPane7.setRightComponent(jLabel18);

        jSplitPane8.setBackground(new java.awt.Color(255, 255, 255));
        jSplitPane8.setEnabled(false);

        jLabel19.setFont(new java.awt.Font("Maiandra GD", 1, 12));
        jLabel19.setForeground(new java.awt.Color(102, 102, 102));
        jLabel19.setText("Estado: ");
        jSplitPane8.setLeftComponent(jLabel19);

        labeEstadoBD.setFont(new java.awt.Font("Maiandra GD", 1, 12));
        labeEstadoBD.setForeground(new java.awt.Color(204, 51, 0));
        labeEstadoBD.setText("desconectado");
        jSplitPane8.setRightComponent(labeEstadoBD);

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jSplitPane5)
                    .addComponent(jSplitPane7)
                    .addComponent(jSplitPane6, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jSplitPane8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jSplitPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSplitPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSplitPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSplitPane8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(14, Short.MAX_VALUE))
        );

        jPanel4.add(jPanel10);

        datosRecibidos.setColumns(10);
        datosRecibidos.setFont(new java.awt.Font("Times New Roman", 1, 14));
        datosRecibidos.setLineWrap(true);
        datosRecibidos.setRows(5);
        datosRecibidos.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1), "Datos Recibdos", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 12))); // NOI18N
        jScrollPane2.setViewportView(datosRecibidos);

        jPanel4.add(jScrollPane2);

        jPanelInicio.add(jPanel4, java.awt.BorderLayout.PAGE_START);

        jPanel3.setBackground(new java.awt.Color(255, 255, 255));
        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Registro", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Maiandra GD", 1, 14))); // NOI18N

        jPanel8.setBackground(new java.awt.Color(255, 255, 255));

        tablaDatosR.setFont(new java.awt.Font("Times New Roman", 1, 12));
        tablaDatosR.setForeground(new java.awt.Color(102, 102, 102));
        tablaDatosR.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Sensor", "Humedad", "Vol. Referencia"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tablaDatosR.setSelectionBackground(new java.awt.Color(51, 51, 255));
        jScrollPane3.setViewportView(tablaDatosR);

        panelGraficaHumedadActual.setBackground(new java.awt.Color(255, 255, 255));
        panelGraficaHumedadActual.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Grafica de Humedad", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 12))); // NOI18N
        panelGraficaHumedadActual.setAutoscrolls(true);
        panelGraficaHumedadActual.setLayout(new java.awt.CardLayout());

        uliFecha.setBackground(new java.awt.Color(255, 255, 255));
        uliFecha.setEnabled(false);

        jLabel8.setFont(new java.awt.Font("Times New Roman", 1, 12));
        jLabel8.setForeground(new java.awt.Color(51, 51, 51));
        jLabel8.setText("Ult. Fecha:");
        uliFecha.setLeftComponent(jLabel8);

        ultFecha.setEditable(false);
        ultFecha.setFont(new java.awt.Font("Times New Roman", 1, 12));
        ultFecha.setForeground(new java.awt.Color(51, 51, 51));
        uliFecha.setRightComponent(ultFecha);

        jSplitPane2.setBackground(new java.awt.Color(255, 255, 255));
        jSplitPane2.setEnabled(false);

        jLabel9.setFont(new java.awt.Font("Times New Roman", 1, 12));
        jLabel9.setForeground(new java.awt.Color(51, 51, 51));
        jLabel9.setText("Ult. Hora:");
        jSplitPane2.setLeftComponent(jLabel9);

        ultHora.setEditable(false);
        ultHora.setFont(new java.awt.Font("Times New Roman", 1, 12));
        ultHora.setForeground(new java.awt.Color(51, 51, 51));
        jSplitPane2.setRightComponent(ultHora);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 238, Short.MAX_VALUE)
                    .addComponent(uliFecha, javax.swing.GroupLayout.DEFAULT_SIZE, 238, Short.MAX_VALUE)
                    .addComponent(jSplitPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 238, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelGraficaHumedadActual, javax.swing.GroupLayout.PREFERRED_SIZE, 555, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(uliFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSplitPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 282, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                .addComponent(panelGraficaHumedadActual, javax.swing.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(82, 82, 82))
        );

        jPanelInicio.add(jPanel3, java.awt.BorderLayout.CENTER);

        contenedorPrincipal.addTab("Inicio", jPanelInicio);

        jPanelEstadoValvulas.setLayout(new java.awt.BorderLayout());

        jPanel9.setBackground(new java.awt.Color(255, 255, 255));

        JtabbetpaneContenedor2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                JtabbetpaneContenedor2MouseClicked(evt);
            }
        });

        tablaResumen.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
        tablaResumen.setForeground(new java.awt.Color(102, 102, 102));
        tablaResumen.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null}
            },
            new String [] {
                ".", ".", ".", ".", ".", ".", "."
            }
        ));
        tablaResumen.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaResumenMouseClicked(evt);
            }
        });
        jScrollPane4.setViewportView(tablaResumen);

        barraRiegoDia.setBackground(new java.awt.Color(255, 255, 255));
        barraRiegoDia.setFont(new java.awt.Font("Times New Roman", 1, 18));
        barraRiegoDia.setToolTipText("tiempo de consumo de la consulta a la BD");

        botonObtenerDatosRegistroDia.setText("Obtener Datos");
        botonObtenerDatosRegistroDia.setEnabled(false);
        botonObtenerDatosRegistroDia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonObtenerDatosRegistroDiaActionPerformed(evt);
            }
        });

        tablaEstadoValvula.setFont(new java.awt.Font("Times New Roman", 1, 14));
        tablaEstadoValvula.setForeground(new java.awt.Color(102, 102, 102));
        tablaEstadoValvula.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Sustrato", "Regando(grupos)", "No regando(grupos)"
            }
        ));
        jScrollPane5.setViewportView(tablaEstadoValvula);

        jPanel13.setBackground(new java.awt.Color(255, 255, 255));
        jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Selección de Nave y Sustrato", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 1, 14), new java.awt.Color(102, 102, 102))); // NOI18N

        jLabel5.setFont(new java.awt.Font("Times New Roman", 1, 12));
        jLabel5.setForeground(new java.awt.Color(102, 102, 102));
        jLabel5.setText("Selecciona la Nave");

        jLabel11.setFont(new java.awt.Font("Times New Roman", 1, 12));
        jLabel11.setForeground(new java.awt.Color(102, 102, 102));
        jLabel11.setText("Unidad:");

        comboNombreNave.setFont(new java.awt.Font("Times New Roman", 1, 12));
        comboNombreNave.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "all" }));
        comboNombreNave.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboNombreNaveActionPerformed(evt);
            }
        });

        jLabel13.setFont(new java.awt.Font("Times New Roman", 1, 12));
        jLabel13.setForeground(new java.awt.Color(102, 102, 102));
        jLabel13.setText("Selecciona el Sustrato");

        jLabel14.setFont(new java.awt.Font("Times New Roman", 1, 12));
        jLabel14.setForeground(new java.awt.Color(102, 102, 102));
        jLabel14.setText("Sustrato:");

        comboNombreSustrato.setFont(new java.awt.Font("Times New Roman", 1, 12));

        checkAll.setBackground(new java.awt.Color(255, 255, 255));
        checkAll.setText("Todos los sustratos");

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)
                    .addComponent(jLabel5)
                    .addComponent(jLabel13)
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jLabel11)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(comboNombreNave, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel13Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(checkAll)
                            .addGroup(jPanel13Layout.createSequentialGroup()
                                .addComponent(jLabel14)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(comboNombreSustrato, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel5)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(comboNombreNave, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(28, 28, 28)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel13)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(comboNombreSustrato, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(checkAll)
                .addContainerGap())
        );

        botonInicioRegistroDia.setText("Iniciar");
        botonInicioRegistroDia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonInicioRegistroDiaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                        .addGap(30, 30, 30)
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel11Layout.createSequentialGroup()
                                .addComponent(botonInicioRegistroDia, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 96, Short.MAX_VALUE)
                                .addComponent(botonObtenerDatosRegistroDia)
                                .addGap(18, 18, 18))
                            .addGroup(jPanel11Layout.createSequentialGroup()
                                .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(25, 25, 25)))
                        .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(barraRiegoDia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 477, Short.MAX_VALUE))
                        .addGap(32, 32, 32))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 808, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(barraRiegoDia, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)
                    .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(botonObtenerDatosRegistroDia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(botonInicioRegistroDia)))
                .addGap(18, 18, 18)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jScrollPane5, 0, 0, Short.MAX_VALUE)
                    .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(419, 419, 419))
        );

        JtabbetpaneContenedor2.addTab("Registro de riego al día", jPanel11);

        jPanel15.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel15.setLayout(new javax.swing.BoxLayout(jPanel15, javax.swing.BoxLayout.LINE_AXIS));

        graficarComportamiento.setText("Graficar");
        graficarComportamiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                graficarComportamientoActionPerformed(evt);
            }
        });
        jPanel15.add(graficarComportamiento);
        jPanel15.add(barraComportamiento);

        jPanel16.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        tablaNombreSustrato.setFont(new java.awt.Font("Times New Roman", 1, 14));
        tablaNombreSustrato.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null},
                {null},
                {null},
                {null}
            },
            new String [] {
                "Sustrato"
            }
        ));
        tablaNombreSustrato.setSelectionBackground(new java.awt.Color(255, 255, 255));
        tablaNombreSustrato.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaNombreSustratoMouseClicked(evt);
            }
        });
        jScrollPane6.setViewportView(tablaNombreSustrato);

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE)
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel18.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel18.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        panelContenedorGraficaComportamiento.setBackground(new java.awt.Color(255, 255, 255));
        panelContenedorGraficaComportamiento.setLayout(new java.awt.CardLayout(5, 5));
        jPanel18.add(panelContenedorGraficaComportamiento, new org.netbeans.lib.awtextra.AbsoluteConstraints(12, 13, 650, 380));

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, 679, Short.MAX_VALUE)
                    .addComponent(jPanel15, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 654, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap(33, Short.MAX_VALUE))
        );

        JtabbetpaneContenedor2.addTab("Graficas Comportamiento Humedad del día", jPanel17);

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addComponent(JtabbetpaneContenedor2, javax.swing.GroupLayout.PREFERRED_SIZE, 825, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addComponent(JtabbetpaneContenedor2, javax.swing.GroupLayout.DEFAULT_SIZE, 508, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanelEstadoValvulas.add(jPanel9, java.awt.BorderLayout.CENTER);

        contenedorPrincipal.addTab("Estados de Valvulas", jPanelEstadoValvulas);

        jPanelRegistros.setBackground(new java.awt.Color(255, 255, 255));
        jPanelRegistros.setAutoscrolls(true);
        jPanelRegistros.setLayout(new javax.swing.BoxLayout(jPanelRegistros, javax.swing.BoxLayout.LINE_AXIS));

        jPanel12.setBackground(new java.awt.Color(255, 255, 255));
        jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        jPanel14.setBackground(new java.awt.Color(255, 255, 255));
        jPanel14.setLayout(new java.awt.GridLayout(5, 0));

        jPanel19.setBackground(new java.awt.Color(255, 255, 255));
        jPanel19.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Productor", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Maiandra GD", 1, 12))); // NOI18N

        insertarProductor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vista/img/insertar.png"))); // NOI18N
        insertarProductor.setBorder(null);
        insertarProductor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                insertarProductorActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 189, Short.MAX_VALUE)
            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel19Layout.createSequentialGroup()
                    .addGap(0, 44, Short.MAX_VALUE)
                    .addComponent(insertarProductor)
                    .addGap(0, 44, Short.MAX_VALUE)))
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 39, Short.MAX_VALUE)
            .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel19Layout.createSequentialGroup()
                    .addGap(0, 5, Short.MAX_VALUE)
                    .addComponent(insertarProductor)
                    .addGap(0, 5, Short.MAX_VALUE)))
        );

        jPanel14.add(jPanel19);

        jPanel20.setBackground(new java.awt.Color(255, 255, 255));
        jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Producto", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Maiandra GD", 1, 12))); // NOI18N

        insertarProducto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vista/img/insertar.png"))); // NOI18N
        insertarProducto.setBorder(null);
        insertarProducto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                insertarProductoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
        jPanel20.setLayout(jPanel20Layout);
        jPanel20Layout.setHorizontalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 189, Short.MAX_VALUE)
            .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel20Layout.createSequentialGroup()
                    .addGap(0, 44, Short.MAX_VALUE)
                    .addComponent(insertarProducto)
                    .addGap(0, 44, Short.MAX_VALUE)))
        );
        jPanel20Layout.setVerticalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 39, Short.MAX_VALUE)
            .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel20Layout.createSequentialGroup()
                    .addGap(0, 5, Short.MAX_VALUE)
                    .addComponent(insertarProducto)
                    .addGap(0, 5, Short.MAX_VALUE)))
        );

        jPanel14.add(jPanel20);

        jPanel21.setBackground(new java.awt.Color(255, 255, 255));
        jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Sustrato", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Maiandra GD", 1, 12))); // NOI18N

        insertarSustrato.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vista/img/insertar.png"))); // NOI18N
        insertarSustrato.setBorder(null);
        insertarSustrato.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                insertarSustratoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);
        jPanel21.setLayout(jPanel21Layout);
        jPanel21Layout.setHorizontalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 189, Short.MAX_VALUE)
            .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel21Layout.createSequentialGroup()
                    .addGap(0, 44, Short.MAX_VALUE)
                    .addComponent(insertarSustrato)
                    .addGap(0, 44, Short.MAX_VALUE)))
        );
        jPanel21Layout.setVerticalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 39, Short.MAX_VALUE)
            .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel21Layout.createSequentialGroup()
                    .addGap(0, 5, Short.MAX_VALUE)
                    .addComponent(insertarSustrato)
                    .addGap(0, 5, Short.MAX_VALUE)))
        );

        jPanel14.add(jPanel21);

        jPanel22.setBackground(new java.awt.Color(255, 255, 255));
        jPanel22.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Ref. Sustrato", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Maiandra GD", 1, 12))); // NOI18N

        insertarReferencia.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vista/img/insertar.png"))); // NOI18N
        insertarReferencia.setBorder(null);
        insertarReferencia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                insertarReferenciaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);
        jPanel22.setLayout(jPanel22Layout);
        jPanel22Layout.setHorizontalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 189, Short.MAX_VALUE)
            .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel22Layout.createSequentialGroup()
                    .addGap(0, 44, Short.MAX_VALUE)
                    .addComponent(insertarReferencia)
                    .addGap(0, 44, Short.MAX_VALUE)))
        );
        jPanel22Layout.setVerticalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 39, Short.MAX_VALUE)
            .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel22Layout.createSequentialGroup()
                    .addGap(0, 5, Short.MAX_VALUE)
                    .addComponent(insertarReferencia)
                    .addGap(0, 5, Short.MAX_VALUE)))
        );

        jPanel14.add(jPanel22);

        jPanel23.setBackground(new java.awt.Color(255, 255, 255));
        jPanel23.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Nave", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Maiandra GD", 1, 12))); // NOI18N

        insertarNave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vista/img/insertar.png"))); // NOI18N
        insertarNave.setBorder(null);
        insertarNave.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                insertarNaveActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
        jPanel23.setLayout(jPanel23Layout);
        jPanel23Layout.setHorizontalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 189, Short.MAX_VALUE)
            .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel23Layout.createSequentialGroup()
                    .addGap(0, 44, Short.MAX_VALUE)
                    .addComponent(insertarNave)
                    .addGap(0, 44, Short.MAX_VALUE)))
        );
        jPanel23Layout.setVerticalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 39, Short.MAX_VALUE)
            .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel23Layout.createSequentialGroup()
                    .addGap(0, 5, Short.MAX_VALUE)
                    .addComponent(insertarNave)
                    .addGap(0, 5, Short.MAX_VALUE)))
        );

        jPanel14.add(jPanel23);

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(153, Short.MAX_VALUE))
        );

        jPanelRegistros.add(jPanel12);

        contenedorPanel.setBackground(new java.awt.Color(204, 255, 204));
        contenedorPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        contenedorPanel.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        contenedorPanel.setLayout(new java.awt.CardLayout());
        jPanelRegistros.add(contenedorPanel);

        contenedorPrincipal.addTab("Registros", jPanelRegistros);

        javax.swing.GroupLayout jPanel28Layout = new javax.swing.GroupLayout(jPanel28);
        jPanel28.setLayout(jPanel28Layout);
        jPanel28Layout.setHorizontalGroup(
            jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 835, Short.MAX_VALUE)
        );
        jPanel28Layout.setVerticalGroup(
            jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 519, Short.MAX_VALUE)
        );

        contenedorPrincipal.addTab("tab6", jPanel28);

        javax.swing.GroupLayout PrincipalLayout = new javax.swing.GroupLayout(Principal);
        Principal.setLayout(PrincipalLayout);
        PrincipalLayout.setHorizontalGroup(
            PrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PrincipalLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(contenedorPrincipal, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        PrincipalLayout.setVerticalGroup(
            PrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PrincipalLayout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(16, 16, 16)
                .addComponent(contenedorPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, 551, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19, Short.MAX_VALUE))
        );

        jScrollPane1.setViewportView(Principal);

        getContentPane().add(jScrollPane1);

        pack();
    }// </editor-fold>//GEN-END:initComponents

  private void insertarProductorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_insertarProductorActionPerformed
    // TODO add your handling code here:
    cargaPanel.cargaPanelProductor();
  }//GEN-LAST:event_insertarProductorActionPerformed

  private void insertarProductoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_insertarProductoActionPerformed
    // TODO add your handling code here:
    cargaPanel.cargaPanelProducto();
  }//GEN-LAST:event_insertarProductoActionPerformed

  private void insertarSustratoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_insertarSustratoActionPerformed
    // TODO add your handling code here:
    cargaPanel.cargaPanelSustrato();
  }//GEN-LAST:event_insertarSustratoActionPerformed

  private void insertarReferenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_insertarReferenciaActionPerformed
    // TODO add your handling code here:
    cargaPanel.cargaPanelReferencia();
  }//GEN-LAST:event_insertarReferenciaActionPerformed

  private void insertarNaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_insertarNaveActionPerformed
    // TODO add your handling code here:
    cargaPanel.cargaPanelNave();
  }//GEN-LAST:event_insertarNaveActionPerformed

  private void salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_salirActionPerformed
    // TODO add your handling code here:
    System.exit(0);
  }//GEN-LAST:event_salirActionPerformed

  private void conectarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_conectarActionPerformed
    // TODO add your handling code here:
    cc = new ContenedorComponente(ultFecha, ultHora, conectar, datosRecibidos, tablaDatosR, labelEstadoPuerto, labelPuerto,""+puerto.getSelectedItem(),panelGraficaHumedadActual);
    accion.conectarPuerto(cc,listUltRegistro);

  }//GEN-LAST:event_conectarActionPerformed

  private void minimizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_minimizarActionPerformed

    
  }//GEN-LAST:event_minimizarActionPerformed

  private void JtabbetpaneContenedor2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_JtabbetpaneContenedor2MouseClicked
    // TODO add your handling code here:
  System.out.println(JtabbetpaneContenedor2.getSelectedIndex());
  if(JtabbetpaneContenedor2.getSelectedIndex() == 1){
    System.out.println("se selecciona el segundo panel");
    ComportamientoHumedad c = new ComportamientoHumedad();
      c.inicializarTablaSustratoNombre(tablaNombreSustrato);
      c.obtnerNombres();
    
  }
    
  }//GEN-LAST:event_JtabbetpaneContenedor2MouseClicked

  private void botonObtenerDatosRegistroDiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonObtenerDatosRegistroDiaActionPerformed

    String [] sustratos;
    if(checkAll.isSelected()){
      sustratos = new String[comboNombreSustrato.getItemCount()]; 
      for(int i =0;i<comboNombreSustrato.getItemCount();i++){
        sustratos[i]= comboNombreSustrato.getItemAt(i).toString();
      }
    }
    else{
      sustratos = new String[1];
      sustratos[0] = comboNombreSustrato.getSelectedItem().toString();
    }
    RiegoAlDia b = new RiegoAlDia(barraRiegoDia,tablaResumen,tablaEstadoValvula,sustratos);
    
  }//GEN-LAST:event_botonObtenerDatosRegistroDiaActionPerformed

  private void tablaResumenMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaResumenMouseClicked
    // TODO add your handling code here:
    tablaEstadoValvula.changeSelection(2,0, true, true);
  }//GEN-LAST:event_tablaResumenMouseClicked

  private void graficarComportamientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_graficarComportamientoActionPerformed
    // TODO add your handling code here:
    if(!nombreSustrato.equals("")){
      
        ComportamientoHumedad comp = new ComportamientoHumedad( barraComportamiento, panelContenedorGraficaComportamiento, nombreSustrato);
    }
  }//GEN-LAST:event_graficarComportamientoActionPerformed

  private void tablaNombreSustratoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaNombreSustratoMouseClicked
    // TODO add your handling code here:
    System.out.println("drgdgdfg");
    int fila = tablaNombreSustrato.rowAtPoint(evt.getPoint());
    int columna = tablaNombreSustrato.columnAtPoint(evt.getPoint());
    nombreSustrato = (String) tablaNombreSustrato.getModel().getValueAt(fila, columna);
    
    
    
  }//GEN-LAST:event_tablaNombreSustratoMouseClicked

  private void botonInicioRegistroDiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonInicioRegistroDiaActionPerformed
    // TODO add your handling code here:
    accion.iniciarRegistroDia(botonObtenerDatosRegistroDia, comboNombreNave);
  }//GEN-LAST:event_botonInicioRegistroDiaActionPerformed

  private void comboNombreNaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboNombreNaveActionPerformed
    // TODO add your handling code here:
    accion.llenaComboNombresSustrato(comboNombreSustrato, comboNombreNave.getSelectedItem()+"");
  }//GEN-LAST:event_comboNombreNaveActionPerformed

  public void dibujaFondo(){
    
    
  }
  
  /**
   * @param args the command line arguments
   */
  public static void main(String args[]) {
    /* Set the Nimbus look and feel */
    //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
     * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
     */
    try {
      
      for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
        if ("Metal".equals(info.getName())) {
          javax.swing.UIManager.setLookAndFeel(info.getClassName());
          break;
        }
      }
    } catch (ClassNotFoundException ex) {
      java.util.logging.Logger.getLogger(Principal2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
    } catch (InstantiationException ex) {
      java.util.logging.Logger.getLogger(Principal2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
    } catch (IllegalAccessException ex) {
      java.util.logging.Logger.getLogger(Principal2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
    } catch (javax.swing.UnsupportedLookAndFeelException ex) {
      java.util.logging.Logger.getLogger(Principal2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
    }
    //</editor-fold>

    /* Create and display the form */
    java.awt.EventQueue.invokeLater(new Runnable() {

      public void run() {
        new Principal2().setVisible(true);
      }
    });
  }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTabbedPane JtabbetpaneContenedor2;
    private javax.swing.JPanel Principal;
    private javax.swing.JProgressBar barraComportamiento;
    private javax.swing.JProgressBar barraRiegoDia;
    private javax.swing.JButton botonInicioRegistroDia;
    private javax.swing.JButton botonObtenerDatosRegistroDia;
    private javax.swing.JCheckBox checkAll;
    private javax.swing.JComboBox comboNombreNave;
    private javax.swing.JComboBox comboNombreSustrato;
    private javax.swing.JButton conectar;
    private javax.swing.JPanel contenedorPanel;
    private javax.swing.JTabbedPane contenedorPrincipal;
    private javax.swing.JTextArea datosRecibidos;
    private javax.swing.JLabel fecha;
    private javax.swing.JButton graficarComportamiento;
    private javax.swing.JLabel hora;
    private javax.swing.JButton insertarNave;
    private javax.swing.JButton insertarProducto;
    private javax.swing.JButton insertarProductor;
    private javax.swing.JButton insertarReferencia;
    private javax.swing.JButton insertarSustrato;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel28;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JPanel jPanelEstadoValvulas;
    private javax.swing.JPanel jPanelInicio;
    private javax.swing.JPanel jPanelRegistros;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSplitPane jSplitPane2;
    private javax.swing.JSplitPane jSplitPane3;
    private javax.swing.JSplitPane jSplitPane5;
    private javax.swing.JSplitPane jSplitPane6;
    private javax.swing.JSplitPane jSplitPane7;
    private javax.swing.JSplitPane jSplitPane8;
    private javax.swing.JLabel labeEstadoBD;
    private javax.swing.JLabel labelEstadoPuerto;
    private javax.swing.JLabel labelPuerto;
    private javax.swing.JButton minimizar;
    private javax.swing.JPanel panelContenedorGraficaComportamiento;
    private javax.swing.JPanel panelFechaHora;
    private javax.swing.JPanel panelGraficaHumedadActual;
    private javax.swing.JPanel panelPuertoSeial;
    private javax.swing.JPanel panelSistema;
    private javax.swing.JComboBox puerto;
    private javax.swing.JButton salir;
    private javax.swing.JTable tablaDatosR;
    private javax.swing.JTable tablaEstadoValvula;
    private javax.swing.JTable tablaNombreSustrato;
    private javax.swing.JTable tablaResumen;
    private javax.swing.JSplitPane uliFecha;
    private javax.swing.JTextField ultFecha;
    private javax.swing.JTextField ultHora;
    // End of variables declaration//GEN-END:variables

  @Override
  public void menuItemSelected(SysTrayMenuEvent stme) {
    throw new UnsupportedOperationException("Not supported yet.");
  }

  @Override
  public void iconLeftClicked(SysTrayMenuEvent stme) {
    throw new UnsupportedOperationException("Not supported yet.");
  }

  @Override
  public void iconLeftDoubleClicked(SysTrayMenuEvent stme) {
    throw new UnsupportedOperationException("Not supported yet.");
  }
  
  
  
}
